package com.chenxiao.Mediator;

/**
 * @Author: CX
 * @Date: Created in  2024/04/07 14:42
 * @version: v1.0
 * @Description: TODO 抽象同事类
 **/
public abstract class User {
    protected ChatMediator mediator;
    protected String name;

    public User(ChatMediator mediator, String name) {
        this.mediator = mediator;
        this.name = name;
    }
    public abstract void send(String message);
}
